
#include "AudioChannel.h"

bool AudioChannel::bindCapture(ICapture *pCapture) {
  if (pCapture) {
    _pCapture = pCapture;
    return true;
  }
  return false;
}

void AudioChannel::unbindCapture(ICapture *pCapture) {
  if (_pCapture == pCapture) {
    _pCapture = nullptr;
  }
}

bool AudioChannel::bindRender(IRender *pRender) {
  if (pRender) {
    _pRender = pRender;
    return true;
  }
  return false;
}

void AudioChannel::unbindRender(IRender *pRender) {
  if (_pRender == pRender) {
    _pRender = nullptr;
  }
}

ChannelType AudioChannel::getChannelType() {
  return ChannelType_Audio;
}

MediaType AudioChannel::getMediaType() {
  return MediaType_Audio;
}

const char *AudioChannel::getClassName() {
  return "AudioChannel";
}

void AudioChannel::toString() {
  LOG_TEST("AudioChannel()")
}
